// =============================================================
// CStatus class
// ---------------------------------------
// Author : Woo-Hyun Kim
// Email : woorung@icu.ac.kr or woorung@nhncorp.com
// Date : Jun. 18, 2007
// =============================================================
#ifndef CStatusH
#define CStatusH
//-----------------------------------------------------------------
#include <iostream>
#include <iterator>
#include <vector>
#include <list>
#include <algorithm>
#include <fstream>
#include <string>

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <math.h>

#include "statgrab.h"

#define ADJUSTED_NAN 99.9999
#define ADJUSTED_ZERO 99.9999

using namespace std;
//---------------------------------------------------------------
class CStatus {
private :
	float adjusted_nan;
	float adjusted_zero;

	void adjust();

public :
	CStatus();
	~CStatus();

	float getLoad();
	float getCPU();
};
//----------------------------------------------------------------
#endif
